<%@ page import="aiball.UserAccount" %>
<html>
<head>
	<meta name='layout' content='main'/>
	<title><g:message code="springSecurity.login.title"/></title>
</head>

<body>
<div id='login'  class="content scaffold-show" role="main">
	<div class='inner' class="content scaffold-show" role="main">
		
		<h1>Login</h1>

		<g:if test='${flash.message}'>
			<div class='login_message'>${flash.message}</div>
		</g:if>

		<form action='${postUrl}' method='POST' id='loginForm' autocomplete='off' >
			<ol class="property-list player">
			<li class="fieldcontain">
			<p>
				<label for='username'><g:message code="springSecurity.login.username.label"/>:</label>
				<input type='text' class='text_' name='j_username' id='username'/>
			</p>
			</li>
			
			<li class="fieldcontain">
			<p>
				<label for='password'><g:message code="springSecurity.login.password.label"/>:</label>
				<input type='password' class='text_' name='j_password' id='password'/>
			</p>
			</li>
	
			<li class="fieldcontain">
			<p id="remember_me_holder">
				<label for='remember_me'><g:message code="springSecurity.login.remember.me.label"/></label>
				<input type='checkbox' class='chk' name='${rememberMeParameter}' id='remember_me' <g:if test='${hasCookie}'>checked='checked'</g:if>/>
				
			</p>
			</li>
			
			<li class="fieldcontain">
				<p><input type='submit' id="submit" value='${message(code: "springSecurity.login.button")}'/></p>
			</li>
			</ol>
		</form>
		
		<fieldset class="buttons">
		<g:form action="registration">
			<g:submitButton name="reg" class="registration" value="${message(code: 'default.button.forgotten.label', default: 'Registrieren')}" />
		</g:form>
		
		<g:form action="getPW">
				<g:submitButton name="getPW" class="getPW" value="${message(code: 'default.button.forgotten.label', default: 'Passwort Vergessen?')}" />
		</g:form>
			
		<g:form action="getMD5">
			<g:submitButton name="getPW" class="getMD5" value="${message(code: 'default.button.forgotten.label', default: 'Verifizierungs Email?')}" />
		</g:form>
		</fieldset>
	</div>
</div>
<script type='text/javascript'>
	<!--
	(function() {
		document.forms['loginForm'].elements['j_username'].focus();
	})();
	// -->
</script>
</body>
</html>
